package src.clientSide;

import src.dataStructures.Item;
import src.dataStructures.User;
import src.messagesToServer.TestMessage;

/**
 * This class is the basis for the testing commands
 * @author John Stewart
 */
public class Main {
	
	public static void main(String[] args) {
		System.out.printf("\nTest 1:\n");
		CCom.handle(new TestMessage());
		System.out.printf("\nTest 2:\n");
		MessageOut.newUser("Admin", "admin");
		System.out.printf("\nTest 3:\n");
		User user = LocalData.currentuser;
		user.messages.add("Admin message #1");
		user.permission = 40;
		MessageOut.setData(user);
		System.out.printf("\nTest 4:\n");
		MessageOut.newItem("AdminItem1");
		System.out.printf("\nTest 5:\n");
		Item item = (Item) LocalData.data;
		item.author = "Joe";
		item.description = "Admin Description 1";
		MessageOut.setData(item);
	}
	
}
